package com.homework3;

public class Programmer extends Employee{
    //程序员类
    private String language = "java";//语言默认是java

    public Programmer() {
    }

    public Programmer(int id, String name, int age, double salary, String language) {
        super(id, name, age, salary);
        this.language = language;
    }

    public Programmer(String language) {
        this.language = language;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    @Override
    public void getInfo() {
        System.out.println("员工编号：" + getId() + "员工姓名：" + getName() + "员工年龄：" + getAge() + "员工工资：" + getSalary() + "员工语言：" + language);
    }
}
